<?php

namespace App\Modules\Admin\Http\Controllers\Mall;

use App\Models\Model;

class GoodsRuleExtendModel extends Model
{

    protected $table='goods_rule_extend';
    protected $primaryKey='id';
    protected $is_delete=0;

    public function getGoodsRuleExtendInfo($where)
    {
        return $this->where($where)->first();
    }

    public function deleteGoodsRuleExtend($goods_id)
    {
        return $this->where(['goods_id'=>$goods_id])->update(['is_delete'=>1]);
    }
    public function createGoodsRuleExtend($data)
    {
        return $this->create($data);
    }

}
